package com.dayuanit.dy16.ebook.ebookweb.mapper;

import com.dayuanit.dy16.ebook.ebookweb.domain.OrderDomain;
import com.dayuanit.dy16.ebook.ebookweb.entity.OrderDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderDetail record);

    int insertSelective(OrderDetail record);

    OrderDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderDetail record);

    int updateByPrimaryKey(OrderDetail record);

    List<OrderDetail> listByOrderId(Long orderId);

    List<OrderDomain.OrderDetailDomain> listByOrderId4Domain(Long orderId);

    List<OrderDomain.OrderDetailDomain> list4Domain(List<Long> orderIds);
}